package cn.huijielong.modules.pub.service;

import cn.huijielong.modules.pub.entity.MerchantEntity;
import cn.huijielong.common.utils.Query;
import java.util.List;
import java.util.Map;
import com.github.pagehelper.Page;

/**
 * 商户表
 * 
 * @author xys
 * @email xys@gmail.com
 * @date 2019-07-03 22:46:43
 */
public interface MerchantService {
	
	MerchantEntity queryObject(Long merchantId);
	
	Long queryMerchantId(Long userId);
	
	List<Long> queryMerchants(Long userId);
	
	int saveMerchantUser(Query q);
	
	List<Query> queryUserByMerId(Long merchantId);
	
	Long querySelectedMerchantId(Long userId);
	
	Page<MerchantEntity> queryList(Query q);
	
	int queryTotal(Map<String, Object> map);
	
	void save(MerchantEntity merchant);
	
	void update(MerchantEntity merchant);
	
	void delete(Long merchantId);
	
	void deleteBatch(Long[] merchantIds);
	
	void deleteUser(Query data);
}
